/*
 * @Author: MuQuanyu(MQy)
 * @Date: 2025-10-22 14:01:34
 * @LastEditTime: 2025-10-23 13:52:16
 * @email: muquanyu@outlook.com
 */
import { http } from "@/utils/http";
import type { SysDictDataPageParams } from "./types";

export function GetDictDataPage(params: SysDictDataPageParams) {
  return http.get<any>("/api/sys-dict-data/page", params, {});
}

export function EditDictData(params: any) {
  return http.post<any>("/api/sys-dict-data/edit", params, {});
}

export function AddDictData(params: any) {
  return http.post<any>("/api/sys-dict-data/add", params, {});
}

export function DeleteDictData(params: any) {
  return http.post<any>("/api/sys-dict-data/delete", params, {});
}

export function DictDataDetail(params: any) {
  return http.get<any>("/api/sys-dict-data/detail", params, {});
}

export function DictDataList(params: any) {
  return http.get<any>("/api/sys-dict-data/list", params, {});
}

/* =============== 下方是 dictType =============== */
export function GetDictTypeList(params: any) {
  return http.get<any>("/api/sys-dict-type/list", params, {});
}

export function GetDictTypeDetail(params: any) {
  return http.get<any>("/api/sys-dict-type/detail", params, {});
}

export function AddDictType(params: any) {
  return http.post<any>("/api/sys-dict-type/add", params, {});
}

export function EditDictType(params: any) {
  return http.post<any>("/api/sys-dict-type/edit", params, {});
}
